import { ConfigProviderProps } from 'ant-design-vue';
import { ValueEnum } from '../../types';
import { VNode } from 'vue';

export interface SearchButtonProps {
  key: 'search' | 'reset' | 'expand' | 'collapse';
  [key: string]: any;
}

export interface ConfigProvideProps extends ConfigProviderProps {
  renderStatus?: (opt: ValueEnum[keyof ValueEnum]) => VNode;
  renderSearchButton?: (opt: SearchButtonProps) => VNode;
  searchConfigProvider?: ConfigProviderProps;
  toolbarsConfigProvider?: ConfigProviderProps;
  formModalConfigProvider?: ConfigProviderProps;
  showFormModalResultMessage: boolean;
}
